package com.ruoyi.comment.mapper;

import java.util.List;

import com.ruoyi.comment.domain.PostPlayComment;
import org.apache.ibatis.annotations.Mapper;

/**
 * 评论Mapper接口
 *
 * @author ruoyi
 * @date 2025-05-21
 */
@Mapper
public interface PostPlayCommentMapper {
    /**
     * 查询评论
     *
     * @param id 评论主键
     * @return 评论
     */
    public PostPlayComment selectPostPlayCommentById(Long id);

    /**
     * 查询评论列表
     *
     * @param postPlayComment 评论
     * @return 评论集合
     */
    public List<PostPlayComment> selectPostPlayCommentList(PostPlayComment postPlayComment);

    /**
     * 新增评论
     *
     * @param postPlayComment 评论
     * @return 结果
     */
    public int insertPostPlayComment(PostPlayComment postPlayComment);

    /**
     * 修改评论
     *
     * @param postPlayComment 评论
     * @return 结果
     */
    public int updatePostPlayComment(PostPlayComment postPlayComment);

    /**
     * 删除评论
     *
     * @param id 评论主键
     * @return 结果
     */
    public int deletePostPlayCommentById(Long id);

    /**
     * 批量删除评论
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePostPlayCommentByIds(Long[] ids);
}
